<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="robots" content="noodp" />
        <title> - L_B__</title><meta name="referrer" content="no-referrer">
<meta name="description" content="专注记笔记"><meta property="og:title" content="" />
<meta property="og:description" content="手写http协议解析库 http协议的组成 http请求报文如下： http响应报文如下： 状态机设计 请求报文解析 响应报文解析 代码结构设计 基础结构类" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://acking-you.github.io/posts/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8/" /><meta property="og:image" content="https://acking-you.github.io/logo.png"/><meta property="article:section" content="posts" />



<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="https://acking-you.github.io/logo.png"/>

<meta name="twitter:title" content=""/>
<meta name="twitter:description" content="手写http协议解析库 http协议的组成 http请求报文如下： http响应报文如下： 状态机设计 请求报文解析 响应报文解析 代码结构设计 基础结构类"/>
<meta name="application-name" content="FeelIt">
<meta name="apple-mobile-web-app-title" content="FeelIt"><meta name="theme-color" content="#ffffff"><meta name="msapplication-TileColor" content="#da532c"><link rel="canonical" href="https://acking-you.github.io/posts/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8/" /><link rel="next" href="https://acking-you.github.io/posts/%E7%9F%A9%E9%98%B5%E5%BF%AB%E9%80%9F%E5%B9%82%E7%9A%84c&#43;&#43;%E5%B0%81%E8%A3%85/" /><link rel="stylesheet" href="/css/page.min.css"><link rel="stylesheet" href="/css/home.min.css"><script type="application/ld+json">
    {
        "@context": "http://schema.org",
        "@type": "BlogPosting",
        "headline": "",
        "inLanguage": "zh-CN",
        "mainEntityOfPage": {
            "@type": "WebPage",
            "@id": "https:\/\/acking-you.github.io\/posts\/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8\/"
        },"genre": "posts","wordcount":  472 ,
        "url": "https:\/\/acking-you.github.io\/posts\/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8\/","publisher": {
            "@type": "Organization",
            "name": "作者"},"author": {
                "@type": "Person",
                "name": "作者"
            },"description": ""
    }
    </script></head><body data-header-desktop="auto" data-header-mobile="auto"><script>(window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('auto' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : 'auto' === 'dark')) && document.body.setAttribute('theme', 'dark');</script>

        <div id="mask"></div><div class="wrapper"><header class="desktop" id="header-desktop">
    <div class="header-wrapper">
        <div class="header-title">
            <a href="/" title="L_B__">L_B__</a>
        </div>
        <div class="menu">
            <div class="menu-inner"><a class="menu-item" href="/posts/"> 文章 </a><a class="menu-item" href="/tags/"> 标签 </a><a class="menu-item" href="/categories/"> 分类 </a><span class="menu-item delimiter"></span><span class="menu-item search" id="search-desktop">
                        <input type="text" placeholder="搜索文章标题或内容..." id="search-input-desktop">
                        <a href="#" class="search-button search-toggle" id="search-toggle-desktop" title="搜索">
                            <i class="fas fa-search fa-fw"></i>
                        </a>
                        <a href="#" class="search-button search-clear" id="search-clear-desktop" title="清空">
                            <i class="fas fa-times-circle fa-fw"></i>
                        </a>
                        <span class="search-button search-loading" id="search-loading-desktop">
                            <i class="fas fa-spinner fa-fw fa-spin"></i>
                        </span>
                    </span><a href="javascript:void(0);" class="menu-item theme-switch" title="切换主题">
                    <i class="fas fa-adjust fa-fw"></i>
                </a>
            </div>
        </div>
    </div>
</header><header class="mobile" id="header-mobile">
    <div class="header-container">
        <div class="header-wrapper">
            <div class="header-title">
                <a href="/" title="L_B__">L_B__</a>
            </div>
            <div class="menu-toggle" id="menu-toggle-mobile">
                <span></span><span></span><span></span>
            </div>
        </div>
        <div class="menu" id="menu-mobile"><div class="search-wrapper">
                    <div class="search mobile" id="search-mobile">
                        <input type="text" placeholder="搜索文章标题或内容..." id="search-input-mobile">
                        <a href="#" class="search-button search-toggle" id="search-toggle-mobile" title="搜索">
                            <i class="fas fa-search fa-fw"></i>
                        </a>
                        <a href="#" class="search-button search-clear" id="search-clear-mobile" title="清空">
                            <i class="fas fa-times-circle fa-fw"></i>
                        </a>
                        <span class="search-button search-loading" id="search-loading-mobile">
                            <i class="fas fa-spinner fa-fw fa-spin"></i>
                        </span>
                    </div>
                    <a href="#" class="search-cancel" id="search-cancel-mobile">
                        取消
                    </a>
                </div><a class="menu-item" href="/posts/" title="">文章</a><a class="menu-item" href="/tags/" title="">标签</a><a class="menu-item" href="/categories/" title="">分类</a><div class="menu-item"><a href="javascript:void(0);" class="theme-switch" title="切换主题">
                    <i class="fas fa-adjust fa-fw"></i>
                </a>
            </div></div>
    </div>
</header><div class="search-dropdown desktop">
    <div id="search-dropdown-desktop"></div>
</div>
<div class="search-dropdown mobile">
    <div id="search-dropdown-mobile"></div>
</div><main class="main">
                <div class="container"><div class="toc" id="toc-auto">
            <h2 class="toc-title">目录</h2>
            <div class="toc-content" id="toc-content-auto"></div>
        </div><article class="page single" data-toc="disable"><div class="single-card" ><h2 class="single-title animated flipInX"></h2><div class="post-meta">
                <div class="post-meta-line"><span class="post-author"><a href="/" title="Author" rel=" author" class="author"><i class="fas fa-user-circle fa-fw"></i>作者</a></span></div>
                <div class="post-meta-line"><span><i class="far fa-calendar-alt fa-fw"></i>&nbsp;<time datetime="0001-01-01">0001-01-01</time></span>&nbsp;<span><i class="fas fa-pencil-alt fa-fw"></i>&nbsp;约 472 字</span>&nbsp;
                    <span><i class="far fa-clock fa-fw"></i>&nbsp;预计阅读 1 分钟</span>&nbsp;</div>
            </div>
            
            <hr><div class="details toc" id="toc-static"  data-kept="">
                    <div class="details-summary toc-title">
                        <span>目录</span>
                        <span><i class="details-icon fas fa-angle-right"></i></span>
                    </div>
                    <div class="details-content toc-content" id="toc-content-static"><nav id="TableOfContents">
  <ul>
    <li><a href="#http协议的组成">http协议的组成</a></li>
    <li><a href="#状态机设计">状态机设计</a></li>
    <li><a href="#代码结构设计">代码结构设计</a></li>
    <li><a href="#代码使用示例">代码使用示例</a></li>
  </ul>
</nav></div>
                </div><div class="content" id="content"><h1 id="手写http协议解析库">手写http协议解析库</h1>
<h2 id="http协议的组成">http协议的组成</h2>
<blockquote>
<p>http请求报文如下：
<img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/937fc897e6ce4d70bbdd58e30123fe3c~tplv-k3u1fbpfcp-watermark.image?"
        data-srcset="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/937fc897e6ce4d70bbdd58e30123fe3c~tplv-k3u1fbpfcp-watermark.image?, https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/937fc897e6ce4d70bbdd58e30123fe3c~tplv-k3u1fbpfcp-watermark.image? 1.5x, https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/937fc897e6ce4d70bbdd58e30123fe3c~tplv-k3u1fbpfcp-watermark.image? 2x"
        data-sizes="auto"
        alt="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/937fc897e6ce4d70bbdd58e30123fe3c~tplv-k3u1fbpfcp-watermark.image?"
        title="image.png" />
<img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/24f806c32db44631866e6df0381d1c5a~tplv-k3u1fbpfcp-watermark.image?"
        data-srcset="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/24f806c32db44631866e6df0381d1c5a~tplv-k3u1fbpfcp-watermark.image?, https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/24f806c32db44631866e6df0381d1c5a~tplv-k3u1fbpfcp-watermark.image? 1.5x, https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/24f806c32db44631866e6df0381d1c5a~tplv-k3u1fbpfcp-watermark.image? 2x"
        data-sizes="auto"
        alt="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/24f806c32db44631866e6df0381d1c5a~tplv-k3u1fbpfcp-watermark.image?"
        title="image.png" /></p>
</blockquote>
<blockquote>
<p>http响应报文如下：
<img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6ee6d2f97fb944099fa7bad0d9366d40~tplv-k3u1fbpfcp-watermark.image?"
        data-srcset="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6ee6d2f97fb944099fa7bad0d9366d40~tplv-k3u1fbpfcp-watermark.image?, https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6ee6d2f97fb944099fa7bad0d9366d40~tplv-k3u1fbpfcp-watermark.image? 1.5x, https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6ee6d2f97fb944099fa7bad0d9366d40~tplv-k3u1fbpfcp-watermark.image? 2x"
        data-sizes="auto"
        alt="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/6ee6d2f97fb944099fa7bad0d9366d40~tplv-k3u1fbpfcp-watermark.image?"
        title="image.png" /></p>
</blockquote>
<blockquote>
<p><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/869ed006c08d48719a7c2bf6a48b0a9b~tplv-k3u1fbpfcp-watermark.image?"
        data-srcset="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/869ed006c08d48719a7c2bf6a48b0a9b~tplv-k3u1fbpfcp-watermark.image?, https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/869ed006c08d48719a7c2bf6a48b0a9b~tplv-k3u1fbpfcp-watermark.image? 1.5x, https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/869ed006c08d48719a7c2bf6a48b0a9b~tplv-k3u1fbpfcp-watermark.image? 2x"
        data-sizes="auto"
        alt="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/869ed006c08d48719a7c2bf6a48b0a9b~tplv-k3u1fbpfcp-watermark.image?"
        title="image.png" /></p>
</blockquote>
<h2 id="状态机设计">状态机设计</h2>
<blockquote>
<p>请求报文解析
<img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/cd0472a8371a442584b37783b9a5b52f~tplv-k3u1fbpfcp-watermark.image?"
        data-srcset="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/cd0472a8371a442584b37783b9a5b52f~tplv-k3u1fbpfcp-watermark.image?, https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/cd0472a8371a442584b37783b9a5b52f~tplv-k3u1fbpfcp-watermark.image? 1.5x, https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/cd0472a8371a442584b37783b9a5b52f~tplv-k3u1fbpfcp-watermark.image? 2x"
        data-sizes="auto"
        alt="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/cd0472a8371a442584b37783b9a5b52f~tplv-k3u1fbpfcp-watermark.image?"
        title="image.png" /></p>
</blockquote>
<blockquote>
<p>响应报文解析
<img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/70f56c79e0c14df3a439c2e56f4a5cd7~tplv-k3u1fbpfcp-watermark.image?"
        data-srcset="https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/70f56c79e0c14df3a439c2e56f4a5cd7~tplv-k3u1fbpfcp-watermark.image?, https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/70f56c79e0c14df3a439c2e56f4a5cd7~tplv-k3u1fbpfcp-watermark.image? 1.5x, https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/70f56c79e0c14df3a439c2e56f4a5cd7~tplv-k3u1fbpfcp-watermark.image? 2x"
        data-sizes="auto"
        alt="https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/70f56c79e0c14df3a439c2e56f4a5cd7~tplv-k3u1fbpfcp-watermark.image?"
        title="image.png" /></p>
</blockquote>
<h2 id="代码结构设计">代码结构设计</h2>
<ul>
<li>基础结构类：Response和Request，其中都包含一个Url类，用于解析得到路径和Query参数。</li>
<li>工具类：HttpParser，HttpParser用于解析纯http报文然后得到对应的Response或Request，组合成字符串信息只需要调用Request或者Response对应的to_string()方法。</li>
</ul>
<p><img
        class="lazyload"
        src="/svg/loading.min.svg"
        data-src="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/276b51bccb68441abb2f7dd0cc3f3831~tplv-k3u1fbpfcp-watermark.image?"
        data-srcset="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/276b51bccb68441abb2f7dd0cc3f3831~tplv-k3u1fbpfcp-watermark.image?, https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/276b51bccb68441abb2f7dd0cc3f3831~tplv-k3u1fbpfcp-watermark.image? 1.5x, https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/276b51bccb68441abb2f7dd0cc3f3831~tplv-k3u1fbpfcp-watermark.image? 2x"
        data-sizes="auto"
        alt="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/276b51bccb68441abb2f7dd0cc3f3831~tplv-k3u1fbpfcp-watermark.image?"
        title="http__Parser.png" /></p>
<h2 id="代码使用示例">代码使用示例</h2>
<blockquote>
<p>对于head和body的设置均可通过直接调用head()和body()方法来设置，这个方法返回的是一个左值。</p>
</blockquote>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cpp" data-lang="cpp"><span class="cp">#include</span><span class="cpf">&#34;http-parser/Parser.h&#34;</span><span class="cp">
</span><span class="cp"></span>
<span class="kt">int</span> <span class="nf">main</span><span class="p">(){</span>
        <span class="n">http</span><span class="o">::</span><span class="n">Parser</span> <span class="n">parser</span><span class="p">;</span>
        <span class="k">auto</span> <span class="n">req</span> <span class="o">=</span> <span class="n">parser</span><span class="p">.</span><span class="n">ToRequest</span><span class="p">(</span><span class="n">buffer</span><span class="p">);</span>
        <span class="n">std</span><span class="o">::</span><span class="n">cout</span> <span class="o">&lt;&lt;</span> <span class="n">req</span><span class="p">.</span><span class="n">to_string</span><span class="p">();</span> <span class="c1">//根据request内容获取对应的http报文
</span><span class="c1"></span>        <span class="n">req</span><span class="p">.</span><span class="n">head</span><span class="p">()[</span><span class="s">&#34;dfasf&#34;</span><span class="p">]</span> <span class="o">=</span> <span class="s">&#34;fda&#34;</span><span class="p">;</span> <span class="c1">//随意设置request的header
</span><span class="c1"></span>        <span class="n">req</span><span class="p">.</span><span class="n">body</span><span class="p">()</span> <span class="o">=</span> <span class="s">&#34;fdsafsadf&#34;</span><span class="p">;</span> <span class="c1">//设置request的body部分
</span><span class="c1"></span>        <span class="c1">//request的特殊字段（GET的FORM和POST的form
</span><span class="c1"></span>        <span class="k">auto</span> <span class="n">v</span> <span class="o">=</span> <span class="n">req</span><span class="p">.</span><span class="n">Query</span><span class="p">(</span><span class="s">&#34;test&#34;</span><span class="p">);</span> <span class="c1">//获取第一个值
</span><span class="c1"></span>        <span class="k">auto</span> <span class="n">v1</span> <span class="o">=</span> <span class="n">req</span><span class="p">.</span><span class="n">PostQuery</span><span class="p">(</span><span class="s">&#34;test&#34;</span><span class="p">);</span> <span class="c1">//获取post表单里的第一个query值
</span><span class="c1"></span>        <span class="n">req</span><span class="p">.</span><span class="n">PostMultiPart</span><span class="p">(</span><span class="s">&#34;test&#34;</span><span class="p">);</span> <span class="c1">//返回form-data的键值（可以传入文件
</span><span class="c1"></span>        
        <span class="n">http</span><span class="o">::</span><span class="n">Response</span> <span class="n">response</span><span class="p">;</span>
        <span class="n">response</span><span class="p">.</span><span class="n">SetStatus</span><span class="p">(</span><span class="n">http</span><span class="o">::</span><span class="n">OK</span><span class="p">);</span>
        <span class="n">response</span><span class="p">.</span><span class="n">SetContentType</span><span class="p">(</span><span class="n">http</span><span class="o">::</span><span class="n">ACCEPT_CONTENT_TYPE</span><span class="o">::</span><span class="n">T_JSON</span><span class="p">);</span>
        <span class="n">response</span><span class="p">.</span><span class="n">SetConnection</span><span class="p">(</span><span class="nb">false</span><span class="p">);</span>
        <span class="n">response</span><span class="p">.</span><span class="n">body</span><span class="p">()</span> <span class="o">=</span> <span class="n">R</span><span class="s">&#34;({&#34;</span><span class="n">hello</span> <span class="n">world</span><span class="o">!</span><span class="s">&#34;:2323})&#34;</span><span class="p">;</span>
        <span class="k">auto</span> <span class="n">response_text</span> <span class="o">=</span> <span class="n">response</span><span class="p">.</span><span class="n">to_string</span><span class="p">();</span>

<span class="p">}</span>
</code></pre></div></div><div class="post-footer" id="post-footer">
    <div class="post-info"><div class="post-info-line"><div class="post-info-mod">
                <span>更新于 0001-01-01</span>
            </div><div class="post-info-mod"></div>
        </div><div class="post-info-share">
            <span><a href="javascript:void(0);" title="分享到 Twitter" data-sharer="twitter" data-url="https://acking-you.github.io/posts/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8/" data-title=""><i class="fab fa-twitter fa-fw"></i></a><a href="javascript:void(0);" title="分享到 Facebook" data-sharer="facebook" data-url="https://acking-you.github.io/posts/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8/"><i class="fab fa-facebook-square fa-fw"></i></a><a href="javascript:void(0);" title="分享到 WhatsApp" data-sharer="whatsapp" data-url="https://acking-you.github.io/posts/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8/" data-title="" data-web><i class="fab fa-whatsapp fa-fw"></i></a><a href="javascript:void(0);" title="分享到 Line" data-sharer="line" data-url="https://acking-you.github.io/posts/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8/" data-title=""><i class="fab fa-line fa-fw"></i></a><a href="javascript:void(0);" title="分享到 微博" data-sharer="weibo" data-url="https://acking-you.github.io/posts/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8/" data-title=""><i class="fab fa-weibo fa-fw"></i></a><a href="javascript:void(0);" title="分享到 Myspace" data-sharer="myspace" data-url="https://acking-you.github.io/posts/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8/" data-title="" data-description=""><i data-svg-src="/lib/simple-icons/icons/myspace.min.svg"></i></a><a href="javascript:void(0);" title="分享到 Blogger" data-sharer="blogger" data-url="https://acking-you.github.io/posts/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8/" data-title="" data-description=""><i class="fab fa-blogger fa-fw"></i></a><a href="javascript:void(0);" title="分享到 Evernote" data-sharer="evernote" data-url="https://acking-you.github.io/posts/%E6%89%8B%E5%86%99http%E5%8D%8F%E8%AE%AE%E8%A7%A3%E6%9E%90%E5%99%A8/" data-title=""><i class="fab fa-evernote fa-fw"></i></a></span>
        </div></div><div class="post-nav">
            <a href="/posts/%E7%9F%A9%E9%98%B5%E5%BF%AB%E9%80%9F%E5%B9%82%E7%9A%84c&#43;&#43;%E5%B0%81%E8%A3%85/" class="next" rel="next" title="矩阵快速幂的C&#43;&#43;封装">Next Post<i class="fas fa-angle-right fa-fw"></i></a></div></div>
</div></article></div>
            </main>
            <footer class="footer"><div class="footer-container"><div class="footer-line">由 <a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo 0.86.0">Hugo</a> 强力驱动 | 主题 - <a href="https://github.com/khusika/FeelIt" target="_blank" rel="noopener noreffer" title="FeelIt 1.0.1"><i class="fas fa-hand-holding-heart fa-fw"></i> FeelIt</a>
        </div><div class="footer-line" itemscope itemtype="http://schema.org/CreativeWork"><i class="far fa-copyright fa-fw"></i><span itemprop="copyrightYear">2023</span><span class="author" itemprop="copyrightHolder">&nbsp;<a href="/"></a></span></div>
</div>
</footer>
        </div>

        <div id="fixed-buttons"><a href="#" id="back-to-top" class="fixed-button" title="回到顶部">
                <i class="fas fa-chevron-up fa-fw"></i>
            </a></div><link rel="stylesheet" href="/lib/fontawesome-free/all.min.css"><link rel="stylesheet" href="/lib/animate/animate.min.css"><link rel="stylesheet" href="/lib/katex/katex.min.css"><link rel="stylesheet" href="/lib/katex/copy-tex.min.css"><script src="/lib/autocomplete/autocomplete.min.js"></script><script src="/lib/lunr/lunr.min.js"></script><script src="/lib/lunr/lunr.stemmer.support.min.js"></script><script src="/lib/lunr/lunr.zh.min.js"></script><script src="/lib/lazysizes/lazysizes.min.js"></script><script src="/lib/clipboard/clipboard.min.js"></script><script src="/lib/sharer/sharer.min.js"></script><script src="/lib/katex/katex.min.js"></script><script src="/lib/katex/auto-render.min.js"></script><script src="/lib/katex/copy-tex.min.js"></script><script src="/lib/katex/mhchem.min.js"></script><script>window.config={"code":{"copyTitle":"复制到剪贴板","maxShownLines":200},"comment":{},"math":{"delimiters":[{"display":true,"left":"$$","right":"$$"},{"display":true,"left":"\\[","right":"\\]"},{"display":false,"left":"$","right":"$"},{"display":false,"left":"\\(","right":"\\)"}],"strict":false},"search":{"highlightTag":"em","lunrIndexURL":"/index.json","lunrLanguageCode":"zh","lunrSegmentitURL":"/lib/lunr/lunr.segmentit.js","maxResultLength":100,"noResultsFound":"没有找到结果","snippetLength":50,"type":"lunr"}};</script><script src="/js/theme.min.js"></script></body></html>
